package com.example.crm.mapper;

import com.example.crm.entity.Chance;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ChanceMapper {
    public List<Chance> finAll();

    public List<Chance> finNameAndTitle(@Param("name") String name, @Param("title") String title,@Param("current") Integer current,@Param("pageSize") Integer pageSize);

    public Chance finId(@Param("id") Integer id);

    public int updChance(Chance chance);

    public int allChance(Chance chance);

    public int delChance(@Param("id") Integer id);

    public int count(@Param("name") String name, @Param("title") String title);
}
